package stringdemo;

import java.util.Scanner;

public class StringDemo1 {
    public static void main(String[] args) {
        /*Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str1 = sc.next();
        String str2 = "abc";
        System.out.println(str1 == str2);*/

        String str1 = "abc";
        String str2 = "Abc";
        boolean e = str1.equals(str2);
        System.out.println(e);
        boolean c = str1.equalsIgnoreCase(str2);
        System.out.println(c);
    }
}
